package OOP.day08.PersonDemo;

public class Patient extends Person {

    //患者ID
    String patientId;
    //科室
    String department;
    //病情
    String pathology;

    //无参构造方法
    public Patient() {

    }

    //有参构造方法
    public Patient(String name, int age, String address, String patientId, String department, String pathology) {
        super(name, age, address);
        this.patientId = patientId;
        this.department = department;
        this.pathology = pathology;
    }

    //治疗
    public void treating(Doctor doctor) {
        System.out.println(name + "（患者ID：" + patientId + "，正在<" + department + ">科室接受<" + doctor.name + ">医生的治疗，病情为：" + pathology+"）");
    }

}
